const { DataTypes, Model } = require('sequelize');

const { sequelize } = require('../config/db');


let ManagedModel = sequelize.define('ManagedModel', {
  id: {
    type: DataTypes.INTEGER,
    primaryKey: true,
    autoIncrement: true,
  },
  name: {
    type: DataTypes.STRING,
    allowNull: false,
  },
  type: {
    type: DataTypes.STRING,
  },
  description: {
    type: DataTypes.TEXT,
  },
  path: {
    type: DataTypes.STRING,
    allowNull: false,
  },
}, {
  tableName: 'managed_models',
});

module.exports = ManagedModel;